﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="UsuarioFormulario.aspx.cs" Inherits="UsuarioFormulaio" Title="Cadastro - Usuário" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:Panel ID="Panel5" runat="server" 
        style="z-index: 1; left: 0px; top: 0px; position: absolute; height: 19px; width: 955px">
        <asp:Label ID="Label2" runat="server" Text="Cadastro de Usuário:" 
            Font-Bold="True" Font-Names="Trebuchet MS" Font-Size="10pt" ForeColor="#000099"></asp:Label>
    </asp:Panel>
    <p>
        <br />
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
            ControlToValidate="txt_nome" ErrorMessage="Campo obrigatório" 
            style="z-index: 1; left: 291px; top: 69px; position: absolute; width: 120px; height: 19px"></asp:RequiredFieldValidator>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
            ControlToValidate="txt_nome" ErrorMessage="Campo obrigatório" 
            style="z-index: 1; left: 421px; top: 32px; position: absolute; width: 120px; height: 19px"></asp:RequiredFieldValidator>
    </p>
    <asp:Panel ID="Panel12" runat="server" 
        style="z-index: 1; left: 14px; top: 34px; position: absolute; height: 19px; width: 12px">
        <asp:Label ID="Label8" runat="server" Text="*" ForeColor="Red" Height="18px"></asp:Label>
    </asp:Panel>
    <p>
        <asp:TextBox ID="txt_nome" runat="server" 
            
            style="z-index: 1; left: 73px; top: 34px; position: absolute; width: 340px; height: 19px" 
            TabIndex="1"></asp:TextBox>
    </p>
    <asp:Panel ID="Panel6" runat="server" 
        style="z-index: 1; left: 31px; top: 35px; position: absolute; height: 19px; width: 36px; right: 888px">
        <asp:Label ID="Label3" runat="server" Text="Nome:" Font-Names="Trebuchet MS" 
            Font-Size="9pt" ForeColor="#000099"></asp:Label>
    </asp:Panel>
    <asp:Panel ID="Panel7" runat="server" 
        style="z-index: 1; left: 31px; top: 73px; position: absolute; height: 19px; width: 34px">
        <asp:Label ID="Label4" runat="server" Text="Login:" Font-Names="Trebuchet MS" 
            Font-Size="9pt" ForeColor="#000099"></asp:Label>
    </asp:Panel>
    <p>
        <asp:TextBox ID="txt_login" runat="server" 
            
            style="z-index: 1; left: 74px; top: 71px; position: absolute; width: 209px" 
            TabIndex="2"></asp:TextBox>
    </p>
    <p>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
            ControlToValidate="txt_senha" ErrorMessage="Campo obrigatório" 
            style="z-index: 1; left: 231px; top: 108px; position: absolute; width: 120px; height: 19px"></asp:RequiredFieldValidator>
    </p>
    <p>
        <asp:TextBox ID="txt_senha" runat="server" 
            style="z-index: 1; left: 73px; top: 106px; position: absolute" 
            TabIndex="3" TextMode="Password"></asp:TextBox>
    </p>
    <asp:Panel ID="Panel13" runat="server" 
        style="z-index: 1; left: 15px; top: 72px; position: absolute; height: 19px; width: 12px">
        <asp:Label ID="Label9" runat="server" ForeColor="Red" 
    Height="10px" Text="*"></asp:Label>
    </asp:Panel>
    <asp:Panel ID="Panel8" runat="server" 
        style="z-index: 1; left: 31px; top: 109px; position: absolute; height: 19px; width: 39px">
        <asp:Label ID="Label5" runat="server" Text="Senha:" Font-Names="Trebuchet MS" 
            Font-Size="9pt" ForeColor="#000099"></asp:Label>
    </asp:Panel>
    <p>
        <asp:DropDownList ID="ddl_status" runat="server" 
            style="z-index: 1; left: 74px; top: 175px; position: absolute" 
            TabIndex="5">
            <asp:ListItem Value="Ativo"></asp:ListItem>
            <asp:ListItem Value="Inativo"></asp:ListItem>
        </asp:DropDownList>
    </p>
    <p>
        <asp:DropDownList ID="ddl_perfil" runat="server" 
            DataSourceID="SqlDataSource1" DataTextField="descricao" 
            onselectedindexchanged="Page_Load" 
            style="z-index: 1; left: 74px; top: 145px; position: absolute" 
            DataValueField="codigo" TabIndex="4">
        </asp:DropDownList>
    </p>
    <asp:Panel ID="Panel9" runat="server" 
        style="z-index: 1; left: 31px; top: 175px; position: absolute; height: 19px; width: 39px">
        <asp:Label ID="Label6" runat="server" Text="Status:" Font-Names="Trebuchet MS" 
            Font-Size="9pt" ForeColor="#000099"></asp:Label>
    </asp:Panel>
    <asp:Panel ID="Panel11" runat="server" 
        style="z-index: 1; left: 32px; top: 143px; position: absolute; height: 19px; width: 33px">
        <asp:Label ID="Label7" runat="server" Text="Perfil:" Font-Names="Trebuchet MS" 
            Font-Size="9pt" ForeColor="#000099"></asp:Label>
    </asp:Panel>
    <p>
        &nbsp;</p>
    <p>
    <asp:Button ID="btn_salvar" runat="server" onclick="btn_salvar_Click" 
        
        style="z-index: 1; left: 31px; top: 224px; position: absolute; width: 92px;" 
        Text="       Salvar" TabIndex="6" />
        </p>
    <p>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
            ControlToValidate="ddl_status" ErrorMessage="Campo obrigatório" 
            style="z-index: 1; left: 158px; top: 178px; position: absolute; width: 120px; height: 19px"></asp:RequiredFieldValidator>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
            ControlToValidate="ddl_perfil" ErrorMessage="Campo obrigatório" 
            style="z-index: 1; left: 201px; top: 147px; position: absolute; width: 120px; height: 19px"></asp:RequiredFieldValidator>
    </p>
    <p>
        <asp:Image ID="Image14" runat="server" 
            ImageUrl="~/imagens/fatia/formulario/salvar.png" 
            
            style="z-index: 1; left: 33px; top: 227px; position: absolute; height: 21px; width: 28px" />
    </p>
        &nbsp;<p>
    </p>
    <p>
        <input id="Button2" type="button" value = "    Voltar" onclick="history.go(-1)" 
            style="z-index: 1; left: 139px; top: 225px; position: absolute; width: 92px;" />
        &nbsp;</p>
        <asp:Image ID="Image13" runat="server" 
            ImageUrl="~/imagens/fatia/formulario/voltar.png" 
            style="z-index: 1; left: 142px; top: 226px; position: absolute; height: 22px; width: 23px" />
 
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:SIGOTConnectionString %>" 
        SelectCommand="SELECT [codigo], [descricao] FROM [tipo_usuario]">
    </asp:SqlDataSource>
    <asp:Panel ID="Panel14" runat="server" 
        style="z-index: 1; left: 16px; top: 109px; position: absolute; height: 19px; width: 12px">
        <asp:Label ID="Label10" runat="server" ForeColor="Red" 
    Height="10px" Text="*"></asp:Label>
    </asp:Panel>
</asp:Content>
<asp:Content ID="Content4" runat="server" 
    contentplaceholderid="ContentPlaceHolder3">
    <asp:Label ID="Label12" runat="server" Font-Bold="True" 
    Font-Names="Trebuchet MS" Font-Size="9pt" ForeColor="#666666" 
    Text="&gt; Administração &gt; Usuário &gt; Cadastro de Usuário"></asp:Label>
&nbsp; 











</asp:Content>


